document.onkeydown = addNewRowToDatagrid;

function addNewRowToDatagrid(event) {
	var e = event || window.event;
	if(e.keyCode == 13) {
		$('#tt').edatagrid('addRow');
	}
}